package com.itheima;

import org.springframework.context.annotation.Bean;

/**
 * @program: Spring_day02_01_注解_IoC注解
 * @description:
 * @author: zhanghz001
 * @create: 2020-11-27 17:04
 **/
// //代表了application.xml
// @Configuration
// //代表context:component-scan
// @ComponentScan
// //导入第三方bean作为spring控制的资源
// @Import({JDBCConfig.class})
// @Order(2)
public class Application2 {

    @Bean
    public String getStr() {
        System.out.println("application2");
        return "application2";
    }
}
